package com.itheima.hmshopping.dubbo.api;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.hmshopping.entity.SmsFlashPromotionProductRelation;

import java.util.List;

public interface SmsFlashPromotionProductRelationApi {
    /**
     * 批量选择商品添加关联
     * @param list
     */
    void create(List<SmsFlashPromotionProductRelation> list);

    /**
     * 删除关联
     * @param id
     */
    void delete(Integer id);

    /**
     *
     * 查询关联
     * @param smsFlashPromotionProductRelation
     * @param pageNum
     * @param pageSize
     * @return
     */
    Page list(SmsFlashPromotionProductRelation smsFlashPromotionProductRelation, Integer pageNum, Integer pageSize);

    /**
     * 修改关联信息
     * @param id
     * @param relation
     */
    void update(Long id, SmsFlashPromotionProductRelation relation);

    /**
     * 获取场次详情
     * @param id
     * @return
     */
    SmsFlashPromotionProductRelation getOne(Long id);
}
